<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	    <!--载入百度编辑器-->
	    	<script type="text/javascript" charset="utf-8" src="Public/ueditor1_4_3/ueditor.config.js"></script>
    		<script type="text/javascript" charset="utf-8" src="Public/ueditor1_4_3/ueditor.all.min.js"> </script>
    		<script type="text/javascript" charset="utf-8" src="Public/ueditor1_4_3/lang/zh-cn/zh-cn.js"></script>
	</head>
	<body>
		<form action="" method="post" enctype="multipart/form-data">
		<div class="alert alert-success">修改品牌</div>
		<div class="form-group">
			<label for="exampleInputEmail1">品牌名称</label>
			<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入品牌名称"  name="bname" value="<?php echo $oldData['bname']?>">
		</div>
		
		<script src="Public/hdjs/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
				//点击关闭图片按钮
				$('.kk').click(function(){
					//删除图片元素
					var str = '<label for="exampleInputEmail1">缩略图</label><input id="exampleInputEmail1" type="file" name="logo">';
					$('#box').html(str);
				})
			})
		</script>
		
		
		<div class="form-group" id="box">
			<label for="exampleInputEmail1">缩略图</label>
			<?php if($oldData['logo']){?>
                
			<img src="<?php echo $oldData['logo']?>" alt="" />
			<a href="javascript:;" class="kk">X</a>
			<input type="hidden" name="logo" id="" value="<?php echo $oldData['logo']?>" />
			<?php }else{?>
			<label for="exampleInputEmail1">缩略图</label>
			<input id="exampleInputEmail1" type="file" name="logo">	
			
               <?php }?>		
		</div>		
		<div class="form-group">
			<label style="font-size: 18px;padding-right: 10px;" for="exampleInputEmail1">热门：</label>
			<br />
			<?php if($oldData['hot']==1){?>
                
			是:<input style="font-size: 12px;margin-right: 10px;" checked="checked" id="exampleInputEmail1" type="radio" name="hot" value="1">
			否:<input style="font-size: 12px;" id="exampleInputEmail1" type="radio" name="hot" value="0">
			<?php }else{?>
			是:<input style="font-size: 12px;margin-right: 10px;" id="exampleInputEmail1" type="radio" name="hot" value="1">
			否:<input style="font-size: 12px;" checked="checked" id="exampleInputEmail1" type="radio" name="hot" value="0">	
			
               <?php }?>			
		</div>
		<input type="hidden" name="bid" value="<?php echo $oldData['bid']?>"/>
		<button class="btn btn-primary btn-block" type="submit"> 修改 </button>
		</form>
	</body>
</html>
